package by.grsu.coctails.db.task;

import java.util.List;

import by.grsu.coctails.model.Coctail;
import android.content.Context;

public abstract class GetCoctailWithIngredientAsyncTask extends
		GetCoctailsAsyncTask {

	private String mIngredientName;

	public GetCoctailWithIngredientAsyncTask(Context context,
			String ingredientName) {
		super(context, "");
		this.mIngredientName = ingredientName;
	}

	@Override
	protected List<Coctail> load() {
		return getDbManager().getCoctailByIngredient(mIngredientName);
	}

}
